package cn.minsh.lims.eoms.modules.app.service;

import cn.minsh.lims.eoms.modules.app.controller.req.*;
import cn.minsh.lims.eoms.modules.app.controller.req.app.AppUserRepairListReq;
import cn.minsh.lims.eoms.modules.app.controller.res.RepairOrderInfoRes;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.minsh.lims.eoms.common.utils.PageUtils;
import cn.minsh.lims.eoms.modules.app.entity.RepairOrderEntity;

/**
 * 维修工单
 *
 * @author lht
 * @email sunlightcs@gmail.com
 * @date 2021-04-30 00:17:00
 */
public interface RepairOrderService extends IService<RepairOrderEntity> {

    PageUtils queryPage(RepairOrderListReq req,Long userId);

    void saveOrder(RepairOrderReq req,Long userId);

    void updateOrderById(RepairOrderReq req,Long userId);

    RepairOrderInfoRes queryOrderById(Long id,Long userId);

    void accept(AcceptOrderReq req,Long userId);

    void reject(RejectOrderReq req,Long userId);

    void updateAgent(ModifyAgentOrderReq req,Long userId);

    void uploadResult(RepairUploadResultReq req,Long userId);

    void closeOrder(RepairCloseReq req,Long userId);

    PageUtils queryAppPage(AppUserRepairListReq req,Long userId);

    PageUtils queryWxPage(AppUserRepairListReq req,Long userId);

    RepairOrderInfoRes queryWxOrderById(Long id,Long userId);
}

